<div id="main">
<%= render :partial => "site/partials/breadcrumbs", :locals => { :current_page => "Edit resources" }%>

<h1>Site Resources</h1>

<%= start_form_tag({:controller => 'resource', :action => 'resources_delete', :site_directory => @site.directory}, :multipart => true) %>

<% for @resource in @site.resources %>
<%= check_box 'delete', @resource.id %> <%= link_to(@resource.title, url_for_file_column("resource", "upload"), :popup => ['new_window']) %><br>
<% end %>

  <%= submit_tag 'Delete selected' %>
<%= end_form_tag %>


<%= start_form_tag({:controller => 'resource', :action => 'resource_upload', :site_directory => @site.directory}, :multipart => true) %>
  <%= render :partial => 'form_resources_edit' %>
  <%= submit_tag 'Upload resource' %>
<%= end_form_tag %>
</div>